import React from "react";
import Cell from "./Cell";
export default class Row extends React.Component{
    playChess(row,col){
        this.props.playChess(row,col)
    }

    render(){
        // const list=new Array(15).fill(0);
        // console.log(this.props)
        const {rowData,row} = this.props



        return(
            <div className="row-container">
                {
                    rowData.map((item,index)=>(
                        <Cell playChess={this.playChess.bind(this)} data={item} key={index} row={row} col={index}/>
                    ))
                }
            </div>
        )

    }
}